﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Timeline.Beans {
    public class GlitterApi {
        [JsonProperty(PropertyName = "status")]
        public int Status { set; get; }

        [JsonProperty(PropertyName = "msg")]
        public string Msg { set; get; }

        [JsonProperty(PropertyName = "data")]
        public List<GlitterApiData> Data { set; get; }
    }

    public class GlitterApiData {
        // 一言
        [JsonProperty(PropertyName = "sentence")]
        public string Sentence { set; get; }

        // 出处
        [JsonProperty(PropertyName = "work")]
        public string Work { set; get; }

        // 作者
        [JsonProperty(PropertyName = "author")]
        public string Author { set; get; }

        // 改编
        [JsonProperty(PropertyName = "modified")]
        public int Modified { set; get; }
    }
}
